#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTimer>
#include <QDateTime>
#include <QStandardItemModel>
QT_BEGIN_NAMESPACE
namespace Ui {
class Widget;
}
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

protected:
    void mousePressEvent(QMouseEvent *event) override;
    void mouseMoveEvent(QMouseEvent *event) override;
    void mouseReleaseEvent(QMouseEvent *event) override;

private slots:
    //时间刷新槽函数
    void slotTimerUpdate();



    void on_pushButton_real_clicked();

    void on_pushButton_backtrader_clicked();

    void on_pushButton_hide_clicked();

    void on_pushButton_max_clicked();

    void on_pushButton_close_clicked();

private:
    Ui::Widget *ui;

    QPoint m_dragPosition;
    bool m_dragging = false;
private:
    //tableview相关
    QStandardItemModel*m_model=nullptr;

};
#endif // WIDGET_H
